//水杯开始
var zzqdata=[
    {   id:1,
        imgurl:'https://img14.360buyimg.com/n1/s300x300_jfs/t1/107620/38/15906/368883/5eaf7085E3cc8d8ef/b2dac719f339e972.jpg',
        text:'摩飞（Morphyrichards）榨汁机 便携式充电迷你无线果汁机料理机随行杯MR9800 蓝色',
        qian:'¥219.00',
        xqian:'¥399.00'
    },{
        id:2,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489097621751.jpg',
        text:'合生元Razer雷蛇 雨林狼蛛幻彩版 Ornata Chroma 机械式薄膜游戏键盘',
        qian:'¥500.00',
        xqian:'¥600.00'
    },{
        id:3,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489102299856.jpg',
        text:'喜瑞新款学院风韩版时尚太空棉宽松长袖印花圆领卫衣女',
        qian:'¥233.00',
        xqian:'¥279.00'
    },{
        id:4,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489102753231.jpg',
        text:'华帝新款韩版chic学生宽松短款外套上衣字母长袖连帽套头卫衣女潮',
        qian:'¥300.00',
        xqian:'¥360.00'
    },{
        id:5,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489102950633.jpg',
        text:'鸿星尔克韩都衣舍2017韩版女装新款黑白拼接插肩棒球服春季短外套HH5597妠 朴信惠同款 黑白拼接 插肩袖 棒球服',
        qian:'¥450.00',
        xqian:'¥540.00'
    },{
        id:6,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489108311901.jpg',
        text:'工银瑞信Samsung/三星 Galaxy C9 Pro SM-C9000 6+64G全金属超薄手机 12期免息 送蓝牙音箱等多种套餐好礼',
        qian:'¥3500.00',
        xqian:'¥4200.00'
    },{
        id:7,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489108908792.jpg',
        text:'迪士尼伊米妮2017春新款简约时尚自然摔牛皮单肩手提大小版波士顿包女包 简约时尚 自然摔牛皮 单肩手提 波士顿包',
        qian:'¥888.00',
        xqian:'¥1056.00'
    },{
        id:8,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1489109633806.jpg',
        text:'汤臣倍健春季马丁靴男真皮男靴黄靴工装军靴韩版短靴沙漠靴高帮男鞋大黄靴 头层牛皮',
        qian:'¥1000.00',
        xqian:'¥1200.00'
    },{
        id:9,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490155369648.jpg',
        text:'匡威Apple/苹果 Apple Watch Series 2 智能手表42mm',
        qian:'¥3188.00',
        xqian:'¥3495.00'
    },{
        id:11,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490160001609.jpg',
        text:'磨铁图书DIY台式电脑整机I7四核六核独显固态组装游戏电脑主机24寸显示器 送百元礼品 内存免费升级 送显示器',
        qian:'¥1388.00',
        xqian:'¥1665.00'
    },{
        id:12,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490173534127.jpg',
        text:'姬芮NewEra纽亦华 新款MLB棒球帽男女字母NY洋基LA道奇调节平沿嘻哈帽 官方正品',
        qian:'¥219.00',
        xqian:'¥262.00'
    },{
        id:13,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490174303715.jpg',
        text:'YOHO有货潮牌LAL/数字贴布连帽套头卫衣男女通用 吴亦凡亲着同款 春夏焕新季，3.21日00:00开始抢购',
        qian:'¥159.00',
        xqian:'¥190.00'
    },{
        id:14,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490174414186.jpg',
        text:'康比特森马针织衫 冬季男圆领套头青年毛衣小清新线衫毛衫纯色韩版学生',
        qian:'¥79.00',
        xqian:'¥94.00'
    },{
        id:15,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490209690294.jpg',
        text:'飞利浦TOSOT/大松 GDF-2001C格力电饭煲迷你智能全自动家用 电饭锅1-2人 格力出品 数码显示 智能预约 全国包邮',
        qian:'¥388.00',
        xqian:'¥465.00'
    },{
        id:16,
        imgurl:'https://x.dscmall.cn/storage/images/201703/thumb_img/0_thumb_G_1490218800612.jpg',
        text:'乔山洽福 转椅轮子万向轮 老板椅办公椅子滑轮电脑椅配件滚轮脚轮轱辘 静音灵活不伤地板质保三年下单备注安装方式',
        qian:'¥23.80',
        xqian:'¥32.80'
    },{
        id:17,
        imgurl:'https://x.dscmall.cn/storage/images/201809/thumb_img/0_thumb_G_1536532312220.jpg',
        text:'猫人Xiaomi/小米 小米电视4A 55英寸 4k超高清智能网络电视机 50 60',
        qian:'¥2399',
        xqian:'¥2878'
    },{
        id:18,
        imgurl:'https://x.dscmall.cn/storage/images/201909/thumb_img/925_thumb_G_1569533172825.jpg',
        text:'欧亚马山水 F7 5.1家庭影院音响套装电视客厅家用3d环绕组合音箱 电视k歌音响套装 家用 组合 重低音蓝牙',
        qian:'¥1899',
        xqian:'¥2378'
    },{
        id:19,
        imgurl:'https://x.dscmall.cn/storage/images/201809/thumb_img/0_thumb_G_1536540539657.jpg',
        text:'小米空气净化器2S家用办公智能氧吧除甲醛雾霾粉尘 新品牙',
        qian:'¥800',
        xqian:'¥960'
    },{
        id:21,
        imgurl:'https://x.dscmall.cn/storage/images/201809/thumb_img/0_thumb_G_1536606976503.jpg',
        text:'小米8SE全面屏拍照游戏智能手机学生机商务机8周年 官方旗舰店正品现货速发',
        qian:'¥1888',
        xqian:'¥2265'
    },{
        id:22,
        imgurl:'https://img14.360buyimg.com/n1/s300x300_jfs/t1/124559/20/5186/127155/5eeb104cE51c8ee13/3f15e98a0384fabf.jpg',
        text:'小熊（Bear）咖啡机 美式家用 0.7L全自动滴漏式小型泡茶煮咖啡壶 KFJ-A07V1',
        qian:'¥129',
        xqian:'¥299'
    },{
        id:23,
        imgurl:'https://img14.360buyimg.com/n1/s300x300_jfs/t1/111213/29/15769/148331/5f4385a7E173796e3/6c597a8be0cb7045.jpg',
        text:'东菱 Donlim 多功能早餐机 三明治机 华夫饼机 多士炉面包机 电火锅轻食机 可做甜甜圈蛋挞 D',
        qian:'¥399',
        xqian:'¥599'
    },{
        id:24,
        imgurl:'https://img14.360buyimg.com/n1/s300x300_jfs/t1/75416/3/11548/695450/5d901d3fEdaaa21fa/88771c48f6f46005.jpg',
        text:'华为 HUAWEI Mate 30 麒麟990旗舰芯片4000万超感光徕卡影像屏内指纹8G+128G',
        qian:'¥4299',
        xqian:'¥10000'
    }
]
$(function(){
    function zzq(zzqdata){
        var zzq1 = '';
        for(var i = 0;i<zzqdata.length;i++){
            zzq1+=`
            <li class = 'tuqian'>
                <a><img src = '${zzqdata[i].imgurl}'></a>
                <div class ='text1'>${zzqdata[i].text}</div>
                <span class = 'text2'>${zzqdata[i].qian}</span>
                <del>${zzqdata[i].xqian}</del>
            </li>`;
            $('.terqw1').html(zzq1);
        }
    }
    zzq(zzqdata);
    // var tuqian1 = document.getElementsByClassName('tuqian');
    // tuqian1.onmouseover = function(){
    //     for(var i = 0;i<tuqian1.length;i++){
    //         console.log('1111');
    //     }
    // }   
    // console.log($('.tuqian'));
    // $('.tuqian').mouseover(function(){
    //     // console.log(this);
    //     // background-color: );
    //     $(this).css('border','1px solid red')
    //     $(this).css('background-color','rgba(0, 0, 0, 0.1')
    // })
    // $('.tuqian').mouseout(function(){
    //     console.log(this);
    //     // background-color: );
    //     $(this).css('','')
    // })
})
